<?php

namespace app\index\controller;

use think\Controller;
use think\Db;

class Index extends Controller
{
    public function _initialize()
    {
    }

    public function index()
    {


        return view();
    }

    public function read($id)
    {
        echo input('id');

    }

    public function shop()
    {
        return view();
    }

    public function gouwu()
    {

        if (input('id')) {

            return view();
        } else {
            $this->error("店铺参数丢失");
        }

    }

    function ttt()
    {

        var_dump(roomMsg([
            "content" => 123,
            'extra' => "NEW_SHIP"
        ], 'shiper'));


        var_dump(newShip());
    }

    function t2()
    {

        $content['content'] = "新店铺订单";
        $content['extra'] = "NEW_MASTER";

        var_dump(publishPrivate(10043, $content, uid()));
    }

}
